<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.javapig.util.*,com.dd.*,java.util.*"%>
    
<%@ page import="com.javapig.util.*"%>
<%@ page import="com.dd.exception.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.dd.*" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.chantel.tool.db.PageData" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<%@ include file="global.jsp" %> 



<%

	String strUserName = pageUser.getXingMing();

  int pageSize = 2;

  // 得到审核通过当前页
  String p1=request.getParameter("p1")==null ? "0":request.getParameter("p1");
  int nP1=Integer.parseInt(p1);
  PageData tgPageData =PageControl.GetShenHeTongGuoDataByUser(pageSize, nP1, pageUser.getId());
  
  // 得到审核拒绝当前页
  String p2=request.getParameter("p2")==null ? "0":request.getParameter("p2");
  int nP2=Integer.parseInt(p2);
  PageData jjPageData =PageControl.GetShenHeJuJueDataByUser(pageSize, nP2, pageUser.getId());
  
  // 得到审核等待当前页
  String p3=request.getParameter("p3")==null ? "0":request.getParameter("p3");
  int nP3=Integer.parseInt(p3);
  PageData ddPageData =PageControl.GetShenHeDengDaiDataByUser(pageSize, nP3, pageUser.getId());
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>审核员采购类比价单列表</title>
<link href="comm_user_cg_List.css" rel="stylesheet" type="text/css" />
</head>

<body bgcolor="#ffffff">

<div height="30px" align="center" class="CODE">
<h3>以下是我提交的采购类比价单的详细信息:</h3>
</div>	
			<div align="center" width = "500">
      		<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>  
      			<TR height="30px" align="center">
      				<td width="22"></td>    				
      			</TR> 
      			<!-- 等待审批的表单开始 -->          
        		<TR>

          			<TD>
            			<TABLE cellSpacing=0 cellPadding=0 border=0>             
             	 			<TR style="FONT-SIZE: 12pt; COLOR: #ccff00">
                				<TD style="WIDTH: 100%" align=left>
                					<span style="COLOR: #386eb2">代审核</span>
               					</TD>
               				</TR>
             				<TR>
                				<TD style="WIDTH: 800px">
                  					<TABLE id=dgddeng width="100%" cellSpacing="0" cellPadding="0"  border="1">
                                		<tr bgcolor="#eeeeee" align="center" height="30px">
											<th width="15%" >表单编号</th>
											<th width="15%" >所属项目</th>
											<th width="30%" >表单名称</th>
											<th width="15%" >表单类别</th>
											<th width="15%" >创建时间</th>
											<th width="10%" >操作</th>
										</tr>	
                                       <% 
                  if(null != ddPageData)
                  {
                	  List li = ddPageData.data;
                	  for(int i = 0; i < li.size(); i++)
                	  {   
                		  Map value = (Map)li.get(i);
                		  int nXiangMuId = ((Integer) value.get("XiangMuId")).intValue();
                		  XiangMu xm = new XiangMu(nXiangMuId);
                		  String xiangMuMingCheng = xm.getMingCheng();
                		  
                		  %>
                    					<TR align="center">
                      						<TD>
                      							<A href="sh_cgbj.jsp?CaiGouBiaoId=<%=value.get("CaiGouBiaoId") %>" 
                        							target=_blank><%=value.get("DanJuBiaoHao") %>
                        						</A>
                        					</TD>
                      						<TD>
                      							<SPAN>
                      								<%=xiangMuMingCheng%>
                      							</SPAN>
                      					 	</TD>
                      						<TD>
                      							<SPAN>
                      								<%=value.get("MingCheng") %>
                      							</SPAN> 
                      						</TD>
                     		 				<TD>
                     		 					<SPAN>
                     		 						<%=value.get("BiaoLeiXingMing") %>
                     		 					</SPAN>
                     				 		</TD>
                     			 			<TD>
                     		 					<SPAN>
                     		 					<%=value.get("ChuangJianShiJian") %>
                     		 					</SPAN>
                     		 				</TD>
                      						<TD>
                      							<a href="sh_cgbj.jsp?CaiGouBiaoId=<%=value.get("CaiGouBiaoId") %>"
                      							target=_blank>
                      							查看                      							</a>                      						</TD>
                      					</TR>
		  					<% }
                	 		 }
                	 		 %>		  
			  						</TABLE>
			  					</TD>
			 	 			</TR>
			 	 			<tr>
			 	 				<td style="WIDTH: 797x" align=right>
			 	 					<%
			 	 						if(ddPageData.bBefore)
			 	 						{
			 	 					%>
			 	 						<a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=<%=nP2%>&p3=0">
			 	 						首页
			 	 						</a>
										<a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=<%=nP2%>&p3=<%=nP3-1%>">
										上一页
										</a>
									 <%}%> 
         							<%=nP3+1 %>/<%=ddPageData.getPageCount() %>
         							<%
         								if(ddPageData.bNext)
         								{
         							%>
         							<a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=<%=nP2%>&p3=<%=nP3+1 %>">
         							下一页
         							</a>
         							<a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=<%=nP2%>&p3=<%=ddPageData.getPageCount()-1%>">
         							末页
         							</a>
         							<%}%>
         						</td>
         					</tr>  			 	
   						</TABLE>
   					</TD>
   				</TR>
   				
   				
   				<!-- 等待审批的表单 结束 --> 
   				
   				<TR height="20px">
			 	</TR>
   				<!-- 审核通过的表单开始 -->          
        		<TR>

       			  <TD>
       			  <TABLE cellSpacing=0 cellPadding=0 border=0>
                          <TR style="FONT-SIZE: 12pt; COLOR: #ccff00">
                            <TD style="WIDTH: 100%" align=left><span style="COLOR: #386eb2">通过审核的表单列表</span></TD>
                          </TR>
                          <TR>
                            <TD style="WIDTH: 800px"><TABLE id=dgddeng width="100%" cellSpacing="0" cellPadding="0"  border="1">
                                <tr bgcolor="#eeeeee" align="center" height="30px">
                                  <th width="15%" >表单编号</th>
                                  <th width="15%" >所属项目</th>
                                  <th width="30%" >表单名称</th>
                                  <th width="15%" >表单类别</th>
                                  <th width="15%" >创建时间</th>
                                  <th width="10%" >操作</th>
                                </tr>
                                <% 
                  if(null != tgPageData)
                  {
                	  List li = tgPageData.data;
                	  for(int i = 0; i < li.size(); i++)
                	  {   
                		  Map value = (Map)li.get(i);
                		  int nXiangMuId = ((Integer) value.get("XiangMuId")).intValue();
                		  XiangMu xm = new XiangMu(nXiangMuId);
                		  String xiangMuMingCheng = xm.getMingCheng();
                		  
                		  %>
                                <TR align="center">
                                  <TD><A href="sh_cgbj.jsp?CaiGouBiaoId=<%=value.get("CaiGouBiaoId") %>" 
                        							target=_blank><%=value.get("DanJuBiaoHao") %> </A> </TD>
                                  <TD><SPAN> <%=xiangMuMingCheng%> </SPAN> </TD>
                                  <TD><SPAN> <%=value.get("MingCheng") %> </SPAN> </TD>
                                  <TD><SPAN> <%=value.get("BiaoLeiXingMing") %> </SPAN> </TD>
                                  <TD><SPAN> <%=value.get("ChuangJianShiJian") %> </SPAN> </TD>
                                  <TD><a href="sh_cgbj.jsp?CaiGouBiaoId=<%=value.get("CaiGouBiaoId") %>"
                      							target=_blank> 查看 </a> </TD>
                                </TR>
                                <% }
                	  }%>
                            </TABLE></TD>
                          </TR>
                          <tr>
                            <td style="WIDTH: 797x" align=right><%
			 	 						if(tgPageData.bBefore)
			 	 						{
			 	 					%>
                                <a href="comm_user_cg_List.jsp?p1=0&p2=<%=nP2%>&p3=<%=nP3%>"> 首页 </a> <a href="comm_user_cg_List.jsp?p1=<%=nP1 -1%>&p2=<%=nP2%>&p3=<%=nP3%>"> 上一页 </a>
                                <%}%>
                                <%=nP1+1 %>/<%=tgPageData.getPageCount() %>
                                <%
         								if(tgPageData.bNext)
         								{
         							%>
                                <a href="comm_user_cg_List.jsp?p1=<%=nP1 +1%>&p2=<%=nP2%>&p3=<%=nP3 %>"> 下一页 </a> <a href="comm_user_cg_List.jsp?p1=<%=tgPageData.getPageCount()-1%>&p2=<%=nP2%>&p3=<%=nP3%>"> 末页 </a>
                                <%}%>
                            </td>
                          </tr>
                        </TABLE>
				    </TD>
   				</TR>
   				<!-- 审核通过的表单 结束 --> 
   				<TR height="20px">
			 	</TR>
   				<!-- 审核被拒绝的表单 开始 -->          
        		<TR>

       			  <TD><TABLE cellSpacing=0 cellPadding=0 border=0>
                          <TR style="FONT-SIZE: 12pt; COLOR: #ccff00">
                            <TD style="WIDTH: 100%" align=left><span style="COLOR: #ff1111">未通过审核的表单列表</span></TD>
                          </TR>
                          <TR>
                            <TD style="WIDTH: 800px"><TABLE id=dgddeng width="100%" cellSpacing="0" cellPadding="0"  border="1">
                                <tr bgcolor="#eeeeee" align="center" height="30px">
                                  <th width="15%" >表单编号</th>
                                  <th width="15%" >所属项目</th>
                                  <th width="30%" >表单名称</th>
                                  <th width="15%" >表单类别</th>
                                  <th width="15%" >创建时间</th>
                                  <th width="10%" >操作</th>
                                </tr>
                                <% 
                  if(null != jjPageData)
                  {
                	  List li = jjPageData.data;
                	  for(int i = 0; i < li.size(); i++)
                	  {   
                		  Map value = (Map)li.get(i);
                		  int nXiangMuId = ((Integer) value.get("XiangMuId")).intValue();
                		  XiangMu xm = new XiangMu(nXiangMuId);
                		  String xiangMuMingCheng = xm.getMingCheng();
                		  
                		  %>
                                <TR align="center">
                                  <TD><A href="sh_cgbj.jsp?CaiGouBiaoId=<%=value.get("CaiGouBiaoId") %>" 
                        							target=_blank><%=value.get("DanJuBiaoHao") %> </A> </TD>
                                  <TD><SPAN> <%=xiangMuMingCheng%> </SPAN> </TD>
                                  <TD><SPAN> <%=value.get("MingCheng") %> </SPAN> </TD>
                                  <TD><SPAN> <%=value.get("BiaoLeiXingMing") %> </SPAN> </TD>
                                  <TD><SPAN> <%=value.get("ChuangJianShiJian") %> </SPAN> </TD>
                                  <TD><a href="sh_cgbj.jsp?CaiGouBiaoId=<%=value.get("CaiGouBiaoId") %>"
                      							target=_blank> 查看 </a> </TD>
                                </TR>
                                <% }
                	  }%>
                            </TABLE></TD>
                          </TR>
                          <tr>
                            <td style="WIDTH: 797x" align=right><%
			 	 						if(jjPageData.bBefore)
			 	 						{
			 	 					%>
                                <a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=0&p3=<%=nP3%>"> 首页 </a> <a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=<%=nP2-1%>&p3=<%=nP3%>"> 上一页 </a>
                                <%}%>
                                <%=nP2+1 %>/<%=jjPageData.getPageCount() %>
                                <%
         								if(jjPageData.bNext)
         								{
         							%>
                                <a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=<%=nP2+1%>&p3=<%=nP3 %>"> 下一页 </a> <a href="comm_user_cg_List.jsp?p1=<%=nP1%>&p2=<%=jjPageData.getPageCount()-1%>&p3=<%=nP3%>"> 末页 </a>
                                <%}%>
                            </td>
                          </tr>
                        </TABLE></TD>
   				</TR>
   				<!-- 审核被拒绝的表单 结束 -->      		
			</TABLE>
	</div>

</BODY>
</HTML>
